class AlgorithmProxy {
  // 数组每一项添加索引字段
  increaseIndexes(val) {
    return Object.keys(val)
      .map(v => {
        return {
          ...val[v],
          key: v
        }
      })
      .filter(v => v.meta && v.meta.showLink)
  }
}

export const algorithm = new AlgorithmProxy()
